package com.redwine.app.net;

import com.android.volley.toolbox.HurlStack;

import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;

public class TTHurlStack extends HurlStack {
    @Override
    protected HttpURLConnection createConnection(URL url) throws IOException {
        if (url.toString().contains("https")) {  
            HTTPSTrustManager.allowAllSSL();  
        }
        return super.createConnection(url);
    }
}